.file-list {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.file-list h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-pairs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.file-pair {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.file-pair:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.file-pair.selected {
  border-color: #007bff;
  background: #e3f2fd;
}

.pair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pair-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-number {
  background: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.audio-name {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  background: white;
}

.audio-info {
  border-left: 3px solid #28a745;
}

.subtitle-info {
  border-left: 3px solid #17a2b8;
}

.no-subtitle {
  border-left: 3px solid #dc3545;
  opacity: 0.7;
}

.file-icon {
  font-size: 20px;
}

.file-meta {
  flex: 1;
}

.file-name {
  font-size: 13px;
  color: #333;
  margin-bottom: 2px;
}

.file-size {
  font-size: 11px;
  color: #666;
}

.match-score {
  font-size: 11px;
  color: #17a2b8;
  font-weight: 500;
}

.file-list-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
}

.clear-all-btn {
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  background: #c82333;
}

/* 滚动条样式 */
.file-pairs::-webkit-scrollbar {
  width: 6px;
}

.file-pairs::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.file-pairs::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.file-pairs::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@media (max-width: 768px) {
  .file-list {
    padding: 15px;
  }

  .file-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .file-pair {
    padding: 12px;
  }

  .pair-header {
    margin-bottom: 10px;
  }

  .audio-name {
    font-size: 13px;
  }

  .file-details {
    gap: 6px;
  }

  .file-info {
    padding: 6px;
    gap: 10px;
  }

  .file-icon {
    font-size: 18px;
  }

  .file-name {
    font-size: 12px;
  }

  .file-size {
    font-size: 10px;
  }

  .match-score {
    font-size: 10px;
  }

  .file-pairs {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .pair-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .audio-name {
    font-size: 12px;
    word-break: break-all;
  }

  .file-details {
    gap: 4px;
  }

  .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .file-icon {
    align-self: flex-start;
  }
}